package com.ay.weixin.fdc.boss.blog.domain;

import java.util.Date;


public class Blog {
	
	private long id;
	
	private long wxproject_id;
	
	private String name;
	
	private int status;
	
	private String type;
	
	private String face_pic_url;
	
	private Date update_time;
	
	private String template;
	
	public enum STATUS{
		 OK(1,"正常"),
		 CLOSED(2,"已归档");
	     private int value;
	     private String desc;
	     private STATUS(int value,String desc){
	    	 this.value=value;
	    	 this.desc=desc;
	     }
	     
	  
	     
	     public static STATUS getStatus(int status){
	    	 switch(status){
	    	 case 1:
	    		 return OK;
	    	 case 2:
	    		 return CLOSED;
	    	 }
	    	 return CLOSED;
	     }
		
		public int getValue() {
			return value;
		}



		public void setValue(int value) {
			this.value = value;
		}

		public String getDesc() {
			return desc;
		}

		public void setDesc(String desc) {
			this.desc = desc;
		}
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getUpdate_time() {
		return update_time;
	}

	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}
	
	public String getUpdate_time_str(){
		if(this.update_time!=null)return this.update_time.toLocaleString();
		return "";
	}

	public String getTemplate() {
		return template;
	}

	public void setTemplate(String template) {
		this.template = template;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}


	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getFace_pic_url() {
		return face_pic_url;
	}

	public void setFace_pic_url(String face_pic_url) {
		this.face_pic_url = face_pic_url;
	}

	public long getWxproject_id() {
		return wxproject_id;
	}

	public void setWxproject_id(long wxproject_id) {
		this.wxproject_id = wxproject_id;
	}

	
	
	
	
}
